/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wso.bus;

import wso.dao.CustomerDao;
import wso.dto.WsoCustomer;

/**
 *
 * @author Violet_Ink
 */
public class CustomerBusImpl implements CustomerBus{

    private CustomerDao customerDao;

    public void setCustomerDao(CustomerDao customerDao) {
        this.customerDao = customerDao;
    }

    public void deleteCustomer(String customerid) {
        customerDao.deleteCustomer(customerid);
    }

    public void saveorUpdateCustomer(WsoCustomer customer) {
        customerDao.saveOrUpdateCustomer(customer);
    }

    public WsoCustomer[] getAllCustomer() {
        return customerDao.getAllCustomer();
    }

    public WsoCustomer getCustomer(String customerid) {
        return customerDao.getCustomer(customerid);
    }
}
